var deptUtils = {
	//初始化左侧菜单子节点
	getChildNode : function(data) {
		var tempArr = [];
		var $this = this;
		data.map(function(item, i) {
			var temp = {};
			temp.text = item.DeptContent;
			temp.data = {
				Grade: item.Grade,
				DeptID: item.DeptID,
				DeptCode: item.DeptCode,
				ParentID: item.ParentID
			};
			if(!Y.checkNull(item.Children) && item.Children.length > 0) {
				if(item.Grade > 2)
					temp.state = {opened: false};
				else
					temp.state = {opened: true};
				temp.children = $this.getChildNode(item.Children);
			}
			tempArr.push(temp);
		});
		return tempArr;
	}
}